package com.yzy.fly.config;

import com.baomidou.mybatisplus.core.handlers.AnnotationHandler;
import org.springframework.core.annotation.AnnotatedElementUtils;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

public class FlyMybatisAnnotationHandler implements AnnotationHandler {

    @Override
    public <T extends Annotation> T getAnnotation(Field field, Class<T> annotationClass) {
        T mergedAnnotation = AnnotatedElementUtils.findMergedAnnotation(field, annotationClass);
        return mergedAnnotation;
    }
}
